package com.changpay.zywy.mvp.presenter

import com.changpay.zywy.base.BasePresenter
import com.changpay.zywy.ext.ss
import com.changpay.zywy.mvp.contract.*
import com.changpay.zywy.mvp.model.*


/**
 * Created by chenxz on 2018/5/27.
 */
class APresenter : BasePresenter<IncomeTotalContract.Model, IncomeTotalContract.View>(), IncomeTotalContract.Presenter {
    override fun getEarning(map: MutableMap<String, String>) {
        mModel?.getEarning(map)?.ss(mModel,mView){
            mView?.showEarning( it.result)
        }
    }


    override fun createModel(): IncomeTotalContract.Model? = IncomeTotalModel()

}